<html>
    <head>
        <meta charset="UTF-8"></meta>
        <title>类的属性变量</title>

        <script type="text/javascript">

            //1. 定义类
            class Point{
                _x = 0;
                _y = 0; 
            }

            function init(){
                let point = new Point();

                var i = 0;
                i=1;
            }
        </script>
    </head>
    <body onload="init()"></body>
</html>